package fiuba.adn2.service.impl;

import fiuba.adn2.dao.NoticiaDao;
import fiuba.adn2.model.Noticia;
import fiuba.adn2.service.NoticiaManager;
import fiuba.service.impl.GenericManagerImpl;

import java.util.List;

public class NoticiaManagerImpl extends GenericManagerImpl<Noticia, Long> implements NoticiaManager {
    NoticiaDao noticiaDao;

    public NoticiaManagerImpl(NoticiaDao noticiaDao) {
        super(noticiaDao);
        this.noticiaDao = noticiaDao;
    }

    public List<Noticia> findByLastName(String lastName) {
        return noticiaDao.findByLastName(lastName);
    }
}